<%@ page language="java" import="java.util.*"%>
<%@ page session="true"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="t"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>  
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="../../template/estilos.jsp"%>
<%@include file="../../template/script.jsp" %>
<script src="${pageContext.request.contextPath}/resources/assets/scripts/module/country.js" type="text/javascript" ></script>
	
<title>Insert title here</title>
 
</head>

<body class="page-header-fixed">
    <!--form action="#" name="listCountry" -->   
    <%@include file="../../template/header.jsp"%>
        <!--div class="page-container" -->
            <%@include file="../../template/sidebar.jsp"%>
          <div class="page-container"> 
            <div class="page-content">
              <form:form action="newsave"  id="form"  method="post"  class="form-horizontal formdata">
                  
                  <%@include file="../../template/header_module.jsp"%>
                  
               <div class="row-fluid">
					<div class="span12">
						<!-- BEGIN EXAMPLE TABLE PORTLET-->
                                                <div class="container-fluid">
						<div class="portlet box grey">
							<div class="portlet-title">
								<div class="caption"><i class="icon-plus"></i>New Country</div>
								 
							</div>
							<div class="portlet-body"> 
                                                                
                                                            <div class="control-group">
								<label class="control-label">Code</label>
								 <div class="controls">
								   <input type="text" name="code" id="code" class="span6 m-wrap"  /> 
								   </div>
                                                            </div> 
                                                            <div class="control-group">
								<label class="control-label">Long Code</label>
								 <div class="controls">
								   <input type="text" name="longCode" id="longCode" class="span6 m-wrap" /> 
								   </div>
                                                            </div>
                                                            <div class="control-group">
								<label class="control-label">Name</label>
								 <div class="controls">
								   <input type="text" name="name" id="description"   class="span6 m-wrap" /> 
								   </div>
                                                            </div>
                                                            <div class="control-group"> 
								 <div class="controls">
                                                                     <a class="btn blue"  data-toggle='modal' onclick="validateForm();" href="#static"><i class="icon-ok"></i> Save</a>
                                                                     <button class="btn gray cleardata" type="button" ><i class="icon-trash"></i> Clear</button>
                                                                     <button class="btn red" type="button"><i class="icon-remove"></i> Cancel</button>
								   </div>
                                                            </div> 
                                                       
							</div> 
							</div>
						</div>
                                              </div> 
					</div>
				</div>
                   <div id="static" class="modal hide fade" tabindex="-1" data-backdrop="static" data-keyboard="false">
                                    <div class="modal-body" id="bodyMessage">
					<p >Are you sure do you want delete this network?</p>
                                    </div>
                                    <div class="modal-footer">
                                    <button type="button" data-dismiss="modal" class="btn black">Ok</button>
                                    </div>    
                                </div> 
                  <c:forEach var="system" items="${dataSystem}">
                      <input type="text" value="${system.id}" name="createdBy" id="createdBy" />
                      <input type="text" value="${system.id}" name="modifiedby" id="modifiedby" />
                      <input type="text" value="${system.id}" name="ownerId" id="ownerId" />
                  </c:forEach> 
                  <input type="text" value="<%=request.getParameter("module") %>" name="module" id="module"/>
               </form:form>
            </div>
        </div> 
        <%@include file="../../template/footer.jsp"%> 
     
    </body>
</html>

